//
//  rightTableViewCell.m
//  Project_A Gary
//
//  Created by leilei on 16/4/5.
//  Copyright © 2016年 www.lei.com. All rights reserved.
//

#import "rightTableViewCell.h"

@implementation rightTableViewCell

-(void)dealloc
{
    [_title release];
    [_nickname release];
    [_userface release];
    [super dealloc];
}

// 初始化
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.title = [[UILabel alloc] init];
        self.title.backgroundColor = [UIColor whiteColor];
        [self.contentView addSubview:self.title];
        self.title.font = [UIFont systemFontOfSize:16];
        self.title.numberOfLines = 0;
        [_title release];
        
        self.nickname =[[UILabel alloc] init];
        self.nickname.backgroundColor = [UIColor whiteColor];
        [self.contentView addSubview:self.nickname];
        self.nickname.textColor = [UIColor blueColor];
        self.nickname.font = [UIFont systemFontOfSize:14];
        [_nickname release];
        
        self.userface = [[UIImageView alloc] init];
        self.userface.backgroundColor = [UIColor whiteColor];
        [self.contentView addSubview:self.userface];
        [_userface release];
        
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.userface.frame = CGRectMake(10, 20, 50, 50);
    self.nickname.frame = CGRectMake(70, 15, 150, 20);
    self.title.frame = CGRectMake(70, 45, 300, 30);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
